﻿#region

using System;
using System.Collections.Generic;
using BusinessObjects;
using DataAccessLayer;

#endregion

namespace BusinessLogicLayer
{
    public static class PickAndDropBookingBLL
    {
        public static void NewPickAndDropBooking(PickAndDropBooking booking)
        {
            PickAndDropBookingDAL.NewPickAndDropBooking(booking);
        }

        public static void UpdatePickAndDropBooking(PickAndDropBooking booking)
        {
            PickAndDropBookingDAL.UpdatePickAndDropBooking(booking);
        }

        /// <summary>
        ///     Get all bookings by booking Id
        /// </summary>
        /// <param name="bookingId">Represent's the booking Id</param>
        /// <returns>Booking</returns>
        public static PickAndDropBooking GetBooking(int bookingId)
        {
            return PickAndDropBookingDAL.GetBooking(bookingId);
        }

        /// <summary>
        ///     Set the vehicle returned date and time
        /// </summary>
        /// <param name="bookingId">Represent's the booking Id</param>
        /// <param name="returneDateTime">Represent's the vehicle returned date and time</param>
        public static void SetReturnedDate(int bookingId, DateTime returneDateTime)
        {
            PickAndDropBookingDAL.SetReturnedDate(bookingId, returneDateTime);
        }

        public static List<PickAndDropBooking> GetAllPickAndDropBookings(int customerId)
        {
            return PickAndDropBookingDAL.GetAllPickAndDropBookings(customerId);
        }
    }
}